$(function(){
    var request = moon.getRequest(location.search);//获取url中"?"符后的参数
    var deviceId = request['deviceId'];//获取设备deviceId
    $(document).ready(function(){
        $(".button").on("click",function(){
            window.location.href=contextPath+"manage_device.html?deviceId="+deviceId;
        });
        setTimeout(function(){
            window.location.href=contextPath+"manage_device.html?deviceId="+deviceId;
        },3000);
    });
})

